﻿<Window x:Class="Bing.Translate.TranslateWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="BingTranslate with Bing#" Height="365" Width="580" Icon="/Bing.Translate;component/Images/ms_translator_logo_big.png">
    <Window.Resources>
        <Style TargetType="{x:Type Label}">
            <Setter Property="Margin" Value="3" />
        </Style>
        <Style TargetType="{x:Type TextBox}">
            <Setter Property="Margin" Value="3" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style TargetType="{x:Type Button}">
            <Setter Property="Margin" Value="3" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
    </Window.Resources>
    <Grid>
        <Label Height="23.277" Canvas.Left="9" Canvas.Top="9" Width="84" HorizontalAlignment="Left" Margin="12,12,0,0" VerticalAlignment="Top">App Id :</Label>
                <TextBox x:Name="txtAppId" VerticalAlignment="Top" Height="19.277" Canvas.Left="99" Canvas.Top="9" Margin="102,12,18,0" />

                <Label VerticalAlignment="Top" DockPanel.Dock="Left" Height="23" Canvas.Left="9" Canvas.Top="38" Margin="13,42,0,0" HorizontalAlignment="Left" Width="83.627">Translate Text: </Label>
        <TextBox x:Name="txtToTranslate" VerticalAlignment="Top" Height="46" Canvas.Left="99" Canvas.Top="42" Margin="102,37,18,0">How are you today?</TextBox>

                <Expander Header="Results" Name="expander1" Margin="13,0,16,12" Canvas.Left="10" Canvas.Top="193" Height="125" VerticalAlignment="Bottom">
                    <Grid>
                        <TextBlock x:Name="txtResults"></TextBlock>
            </Grid>
                </Expander>
        <Label Canvas.Left="9" Canvas.Top="67" Name="label1" Margin="12,89,0,0" HorizontalAlignment="Left" Width="84" Height="23" VerticalAlignment="Top">From</Label>
        <Label Canvas.Left="10" Canvas.Top="101" Name="label2" Width="83" HorizontalAlignment="Left" Margin="12,118,0,0" Height="23" VerticalAlignment="Top">To</Label>
        <ComboBox Canvas.Left="101" Canvas.Top="70" Name="cboFrom" Margin="102,89,18,0" Height="23" VerticalAlignment="Top" />
        <ComboBox Canvas.Left="102" Canvas.Top="99" Name="cboTo" Margin="101,118,18,0" Height="23" VerticalAlignment="Top" Opacity="75" />
        <Button x:Name="btnTranslate" DockPanel.Dock="Right" Click="btnTranslate_Click" Width="88"  HorizontalAlignment="Right" Margin="0,147,18,143">
            <StackPanel Orientation="Horizontal" >
                <Image Source="/Bing.Translate;component/Images/ms_translator_logo_big.png" Width="16" Height="16"/>
                <Label>Translate</Label>
            </StackPanel>
        </Button>
    </Grid>
</Window>
